﻿using System.ServiceModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel.Description;
using LearnTower.ConsoleClient.AuthenticationProxy;
using LearnTower.Business.Data;

namespace LearnTower.ConsoleClient
{
    class Program
    {
        static void Main(string[] args)
        {
            AuthenticationServiceClient client = new AuthenticationServiceClient();
            Response resp = client.Authenticate("Susie", "123");
            resp = client.Authenticate("Kevin", "123456");
            Console.WriteLine("SessionID:{0}", client.InnerChannel.SessionId);
            client.Close();

            client = new AuthenticationServiceClient();
            resp = client.Authenticate("Susie", "123");
            resp = client.Authenticate("Kevin", "123456");
            Console.WriteLine("SessionID:{0}", client.InnerChannel.SessionId);
            client.Close();

            Console.ReadLine();
        }
    }
}
